Page History: INPUT Function
Compare Page Revisions
Page Revision: 2012/08/14 10:28
The input function allows for user configuration of script parameters to customize a script on a chart. For example, a script that used a moving average would use the INPUT function to get the number of periods to use for the moving average. That would allow the same script to be used on multiple charts with different values for the number of periods.
INPUT(<
label>, <
number>, <
min value>, <
max value>);
INPUT(<
label>, <
text>);
INPUT(<
label>, <
color>);
INPUT(<
label>, <
lookup>);
Function ParametersParameter | Description |
---|
<label> | The label that appears on the property page for this value. |
<periods> | The number of periods to compute the moving average over. |
<MAType> | The type of moving average to compute. |